<div class="bodywrap"> 
	<div data-role="page" id="<?php echo $key+1;?>" data-theme="e" class="searchPage" data-url="page=<?php echo $key+1;?>"> 
    <div data-role="content" style="margin:0;padding:0">
    	<ul data-role="listview" data-inset="true" data-theme="e" style="margin:0;padding:0">
        	<li id="listitem" style="margin:0;padding:0; border:0">
            	<div class="subhead">Score Card</div>
				<div style="width:99%; margin:0 auto"></div>
					<div style="padding:10px 0; margin:5px 0 0 0; background:#e5e8ef;">
    					<div class="quizbutton">
							<div align="center">
    							<?php 
									$user=Users::model()->getModel('USER-ID', array('userid'=>Yii::app()->user->id));
									if($user->current_batch)
									{
									  echo "Username: ".$user->username;
									  echo "<br/>"; 
									  echo "Current Badge: ".$user->current_batch;
									  echo "<br/>";
									  echo "Overall Point: ".$user->total_points;
									  $badgeimage = BadgeDetails::model()->getModel('BY-NAME',array('name'=>$user->current_batch))->image;
  								?>
  									  <br/>
  									  <img src="<?php echo ApplicationConfig::getImageUrl("CHAPTER-IMAGES", array('file_name'=>$badgeimage));?>" height="130" width="130">
								<?php
									 }  
									 else
										echo "Currently your score is Zero. No Badge assigned to you.";
								?>
    						</div>
						</div>   
					</div>
            	</li>
            </ul>
       	</div>
	</div>
</div>